package yc.star.api;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import yc.star.api.domain.dto.JudgeSubmitDTO;
import yc.star.api.domain.vo.UserQuestionResultVO;
import yc.star.common.constants.Constant;
import yc.star.common.domain.AppResult;

@FeignClient(contextId = "RemoteJudgeService", value = Constant.JUDGE_SERVICE)
public interface RemoteJudgeService {

    @PostMapping("/judge/doJudgeJavaCode")
    AppResult<UserQuestionResultVO> doJudgeJavaCode(@RequestBody JudgeSubmitDTO judgeSubmitDTO);

}